<template>
  <div >
    <p @click="$store.commit('add')">counter: {{$store.state.counter}}</p>
    <p @click="$store.dispatch('add')">async counter: {{$store.state.counter}}</p>
    <p>getters:{{$store.getters.doubleCounter}}</p>
    <p>{{$store.state.counter}}</p>
  </div>
</template>

<script>

export default {
  name: 'StoreTest'

}
</script>


